import json
def Num():
 file_name='nums.json'
 nums=input("你最喜欢的数字")
 with open(file_name,'w')as f:
    json.dump(nums, f)

def BstNum():

  file_name='nums.json'
  print("你最爱的数字是")
  with open(file_name,'r')as f:
     nums=json.load(f)
     print(nums)


Num()
BstNum()

